{if $request.isSelectedCity == true}
	{foreach from=$request.CityCd item=CityCd name=loop}
<input type="hidden" name="CityCd[{$smarty.foreach.loop.index}]" value="{$CityCd}" />
	{/foreach}
{/if}
		
{if $request.isSelectedRail == true}
	{foreach from=$request.RailCd item=RailCd name=loop}
<input type="hidden" name="RailCd[{$smarty.foreach.loop.index}]" value="{$RailCd}" />
	{/foreach}
{/if}

<!-- prefBlock -->
<div id="prefBlock" class="tableBaseBlock">
	<!-- innerBlock01 -->
	<div class="innerBlock01">
		<!-- innerBlock02 -->
		<div class="innerBlock02">
			<table summary="都道府県選択">
				<tr>
					<th class="first">北海道エリア</th>
					<td class="first">
						<ul class="checkBoxList">
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd01" value="01" {$request.PrefCd01checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '01')">北海道</a></li>
						</ul>
					</td>
				</tr>
				<tr>
					<th>東北エリア</th>
					<td class="eval">
						<ul class="checkBoxList">
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd02" value="02" {$request.PrefCd02checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '02')">青森県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd03" value="03" {$request.PrefCd03checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '03')">岩手県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd04" value="04" {$request.PrefCd04checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '04')">宮城県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd05" value="05" {$request.PrefCd05checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '05')">秋田県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd06" value="06" {$request.PrefCd06checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '06')">山形県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd07" value="07" {$request.PrefCd07checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '07')">福島県</a></li>
						</ul>
					</td>
				</tr>
				<tr>
					<th>関東・信越エリア</th>
					<td>
						<ul class="checkBoxList">
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd13" value="13" {$request.PrefCd13checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '13')">東京都</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd14" value="14" {$request.PrefCd14checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '14')">神奈川県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd11" value="11" {$request.PrefCd11checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '11')">埼玉県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd12" value="12" {$request.PrefCd12checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '12')">千葉県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd08" value="08" {$request.PrefCd08checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '08')">茨城県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd10" value="10" {$request.PrefCd10checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '10')">群馬県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd15" value="15" {$request.PrefCd15checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '15')">新潟県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd09" value="09" {$request.PrefCd09checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '09')">栃木県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd19" value="19" {$request.PrefCd19checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '19')">山梨県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd20" value="20" {$request.PrefCd20checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '20')">長野県</a></li>
						</ul>
					</td>
				</tr>
				<tr>
					<th>北陸エリア</th>
					<td class="eval">
						<ul class="checkBoxList">
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd16" value="16" {$request.PrefCd16checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '16')">富山県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd17" value="17" {$request.PrefCd17checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '17')">石川県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd18" value="18" {$request.PrefCd18checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '18')">福井県</a></li>
						</ul>
					</td>
				</tr>
				<tr>
					<th>東海エリア</th>
					<td>
						<ul class="checkBoxList">
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd23" value="23" {$request.PrefCd23checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '23')">愛知県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd21" value="21" {$request.PrefCd21checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '21')">岐阜県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd24" value="24" {$request.PrefCd24checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '24')">三重県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd22" value="22" {$request.PrefCd22checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '22')">静岡県</a></li>
						</ul>
					</td>
				</tr>
				<tr>
					<th>関西エリア</th>
					<td class="eval">
						<ul class="checkBoxList">
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd27" value="27" {$request.PrefCd27checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '27')">大阪府</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd26" value="26" {$request.PrefCd26checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '26')">京都府</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd28" value="28" {$request.PrefCd28checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '28')">兵庫県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd25" value="25" {$request.PrefCd25checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '25')">滋賀県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd29" value="29" {$request.PrefCd29checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '29')">奈良県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd30" value="30" {$request.PrefCd30checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '30')">和歌山県</a></li>
						</ul>
					</td>
				</tr>
				<tr>
					<th>中国・四国エリア</th>
					<td>
						<ul class="checkBoxList">
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd31" value="31" {$request.PrefCd31checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '31')">鳥取県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd32" value="32" {$request.PrefCd32checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '32')">島根県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd33" value="33" {$request.PrefCd33checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '33')">岡山県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd34" value="34" {$request.PrefCd34checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '34')">広島県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd35" value="35" {$request.PrefCd35checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '35')">山口県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd36" value="36" {$request.PrefCd36checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '36')">徳島県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd37" value="37" {$request.PrefCd37checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '37')">香川県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd38" value="38" {$request.PrefCd38checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '38')">愛媛県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd39" value="39" {$request.PrefCd39checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '39')">高知県</a></li>
						</ul>
					</td>
				</tr>
				<tr class="last">
					<th>九州・沖縄エリア</th>
					<td class="eval">
						<ul class="checkBoxList">
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd40" value="40" {$request.PrefCd40checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '40')">福岡県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd41" value="41" {$request.PrefCd41checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '41')">佐賀県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd42" value="42" {$request.PrefCd42checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '42')">長崎県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd43" value="43" {$request.PrefCd43checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '43')">熊本県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd44" value="44" {$request.PrefCd44checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '44')">大分県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd45" value="45" {$request.PrefCd45checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '45')">宮崎県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd46" value="46" {$request.PrefCd46checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '46')">鹿児島県</a></li>
							<li><input name="PrefCd[]" type="checkbox" id="PrefCd47" value="47" {$request.PrefCd47checked} {$checkbox_changed}/><a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '47')">沖縄県</a></li>
						</ul>
					</td>
				</tr>
			</table>
		</div>
		<!-- /innerBlock02 -->
	</div>
	<!-- /innerBlock01 -->
</div>
<!-- /prefBlock -->

<div id="searchBtnBlock02">
	<div class="btnBlock">
		<p>
			<a href="javascript:SelTodofuken(document.frm_SelPref, 'city');">
				<img src="{$apm.baseurl}images/shop/index/btn_select_city.jpg" alt="市区町村を選択" width="158" height="35" class="rollImg" />
			</a>
			<a href="javascript:SelTodofuken(document.frm_SelPref, 'rail');">
				<img src="{$apm.baseurl}images/shop/index/btn_select_railway_station.jpg" alt="沿線を選択" width="158" height="35" class="rollImg" />
			</a>
		</p>
	</div>
</div>

{* 最初に選択した都道府県CDを保存 *}
<input type="hidden" name="first_check" id="first_check" value="">
{literal}
<script type="text/javascript">
<!--
$(function(){
	$("div#prefBlock ul.checkBoxList li input").click(function(){
		var checkbox = document.getElementsByName('PrefCd[]');
		var checkCd  = new Array();
		var cnt = 0;
		// チェックしてある都道府県CDを取得
		for (i=0; i<checkbox.length; i++) {
			if (checkbox[i].checked == true) {
				checkCd[cnt] = checkbox[i].value;
				cnt++;
			}
		}
		// チェックしてある都道府県が1件の場合、保存
		if (cnt == 1) {
			document.getElementById('first_check').value = checkCd[0];
		}
	});
});
//-->
</script>
{/literal}
